package loader;


public class TesteJade {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*
		// Get a hold on JADE runtime
		Runtime rt = Runtime.instance();
		// Create a default profile
		Profile p = new ProfileImpl();
		// Create a new non-main container, connecting to the default
		// main container (i.e. on this host, port 1099)
		ContainerController cc = rt.createAgentContainer(p);
		// Create a new agent, a DummyAgent
		// and pass it a reference to an Object
		Object reference = new Object();
		Object agentArgs[] = new Object[1];
		agentArgs[0]=reference;
		try {
			AgentController dummy = cc.createNewAgent("inProcess",
					"jade.tools.DummyAgent.DummyAgent", agentArgs);
					// Fire up the agent
					dummy.start();
			
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
		*/
		
		String tituloObra = "Atualiza&ccedil;&otilde;es em Inform&aacute;tica 2008. 1.                                                ed. Rio de Janeiro: PUC-RIo, 2008. v. 1. 272 p.";
		String tituloCorrigido = tituloObra.replaceAll("\\s{2,}", " ");
        /*
        for (int i=0;i<tituloObra.length();i++){
        	if (i<tituloObra.length()-1){
        		if ((tituloObra.charAt(i)!=' ') && (tituloObra.charAt(i+1)!=' ')){
        			tituloCorrigido+=tituloObra.substring(i, i+1);
        		}
        	}
        }
        */
        System.out.println(tituloCorrigido);
        /*
		try {
			new IstarModelLoader("U:/myworkspace/IstarJade/file/Fanxaria9.iml");
		} catch (Exception e) {
			e.printStackTrace();
		}		  
		*/
		
	}

}
